import myAxios from '@/utils/requset'

// 获取文章列表
export const artListService = (params) => myAxios.get('/article', { params })

// 修改文章状态
export const artUpdateStatusService = (id) => myAxios.put(`/article/${id}`)

// 新增文章
export const artAddArticleService = (data) => myAxios.post('/article', data)

// 更新文章
export const artUpdateArticleService = (data) => myAxios.put(`/article`, data)
